package com.moli.iov.his;

import com.moli.iov.his.dto.VehicleTrajectoryReqDTO;
import com.moli.iov.his.dto.VehicleTrajectoryResDTO;
import com.moli.iov.his.remote.HistoryRemoteService;
import com.moli.iov.rest.RestResponse;
import com.moli.iov.util.SpringContextUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.util.Date;
import java.util.List;

public class StartHisService {

    protected static final Logger logger = LoggerFactory.getLogger(StartHisService.class);

    public static void main(String[] args) {

        //加载spring配置文件
        ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext("spring/spring-base.xml");
        //启动spring容器
        ctx.start();

        logger.info("服务[iov-service-his]启动成功");
        synchronized (StartHisService.class) {
            while (true)
                try {
                    StartHisService.class.wait();
                } catch (Throwable e) {
                    e.printStackTrace();
                }
        }
    }

}
